package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.bo.user.UserMessageBo;
import com.cskaoyan.mall.model.bo.user.UserPwdChangeBo;
import com.cskaoyan.mall.model.bo.user.UserSignUpMessageBo;
import com.cskaoyan.mall.model.vo.user.UserMessageVo;

import java.util.List;

/**
 * @ClassName: UserService
 * @Description: TODO
 * @Auther 庄左
 * @Date 2022/6/29 21:40
 * @Version
 **/
public interface UserService {

    List<UserMessageVo> search() ;

    List<UserMessageVo> selectByName(String nickname);

    UserMessageVo login(UserMessageVo userMessageVo);

    void deleteUser(Integer id);

    //用户注册
    void insertUser(UserSignUpMessageBo userSignUpMessageBo);
    //修改资料页面的回显
    UserMessageVo selectUserDataByToken(String token);

    void updateUserData(UserMessageBo userMessageBo);


    void changePwd(UserPwdChangeBo userChangePwdBo);
}
